package com.qcnh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 公告表
 * </p>
 *
 * @author ${author}
 * @since 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("announcement")
public class Announcement implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 公告ID
     */
    @TableId(value = "announcement_id", type = IdType.AUTO)
    private Long announcementId;

    /**
     * 公告标题
     */
    @TableField("title")
    private String title;

    /**
     * 公告内容
     */
    @TableField("content")
    private String content;

    /**
     * 有效截止日期
     */
    @TableField("valid_until")
    private LocalDate validUntil;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdDate;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    private LocalDateTime updatedDate;


}
